home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
14
/
8
/
DISK1487.ZIP
/
2FACED.DOC
< prev
next >
Wrap
Text File
|
1990-12-11
|
42KB
|
1,099 lines
2Faced
Version 3.0
etersen
P rogramming &
P onsulting
C
Licensing
You are authorized to USE ONE copy of 2Faced. You may copy
the program as necessary, but only one copy of the program may be
used at any given time. When a copy is in use, any extra copies
are authorized for archival purposes only.
Limited 90 Day Warranty
PETERSEN PROGRAMMING & CONSULTING warrants that the disk will
be machine readable. If the original 2Faced program disk is
found to be defective within 90 days from date of purchase,
PETERSEN PROGRAMMING & CONSULTING will replace the program disk.
Since the way in which this program may be used is unknown to
PETERSEN PROGRAMMING & CONSULTING, no warranty is made as to the
use and/or suitability of 2Faced for any purpose. Damages under
this warranty are limited to the purchase price.
DeskJet, LaserJet, LaserJet+, LaserJet II, LaserJet IID,
LaserJet IIP, LaserJet III, and LaserJet IIID are trademarks of
Hewlett-Packard.
All rights reserved. No part of this publication may be
reproduced, stored in a retrieval system, or transmitted, in any
form or by any means, electronic, mechanical, photocopying,
recording, or otherwise, without prior written permission from
Petersen Programming & Consulting. Printed in the United States
of America.
Copyright (C) 1990 by Petersen Programming & Consulting
Petersen Programming & Consulting
787 North 610 East
American Fork, UT 84003
(801) 756-3971
Printed December, 1990
ii 2Faced
Table of Contents
Introduction . . . . . . . . . . . . . . 1
Control Screen . . . . . . . . . . . . . 2
Print File . . . . . . . . . . . . . . 3
Printer Type . . . . . . . . . . . . . 3
Paper Size . . . . . . . . . . . . . . 3
Orientation . . . . . . . . . . . . . 4
Print Mode . . . . . . . . . . . . . . 4
Binding . . . . . . . . . . . . . . . 5
Source Side 1 . . . . . . . . . . . . 5
Source Side 2 . . . . . . . . . . . . 6
Print Device . . . . . . . . . . . . . 6
Number Copies . . . . . . . . . . . . 7
Columns . . . . . . . . . . . . . . . 7
Rows . . . . . . . . . . . . . . . . . 7
Line Numbers . . . . . . . . . . . . . 7
File Information . . . . . . . . . . . 7
Boxes . . . . . . . . . . . . . . . . 7
Gray Bar . . . . . . . . . . . . . . . 7
Expand Tabs . . . . . . . . . . . . . 8
Line Wrap . . . . . . . . . . . . . . 8
CCTL . . . . . . . . . . . . . . . . . 8
Counts . . . . . . . . . . . . . . . . 9
Function Keys . . . . . . . . . . . . 9
Configuration File . . . . . . . . . . . 9
Selected Pages . . . . . . . . . . . . . 10
Command Line Options . . . . . . . . . . 10
Print Through . . . . . . . . . . . . 11
Default Configuration File . . . . . . 11
Logical Page Sizes . . . . . . . . . . . 11
Index . . . . . . . . . . . . . . . . . . 13
2Faced iii
Introduction 2Faced prints text files on printers which
understand Hewlett-Packard's Printer Command
Language (PCL). These printers include the
HP DeskJet, HP LaserJet, HP LaserJet+, HP
LaserJet II, HP LaserJet IID, LaserJet IIP,
LaserJet III, and LaserJet IIID. (Note:
2Faced's abilities are handicapped on the
LaserJet and Deskjet printers because of
hardware limitations of the printers. These
limitations are described in the Printer Type
section.) 2Faced will also work with any
other printers that emulate these printers or
understand PCL.
Files can be printed in several ways. Two
normal pages can be printed on one page in a
2up fashion. Both sides of the paper can be
used, thus greatly reducing the size of a
program listing or report printout. The size
of a document can be reduced to one fourth of
its original size. The pamphlet style of
printing allows the printed pages to be
folded in half and stapled together, creating
a very compact and manageable document. Gray
bars can be used to help group the lines of
text or to give a classical green bar look.
The file name and page numbers can also be
printed at the top or bottom of the pages.
2Faced is configurable. Once options are
selected, they can be saved in a
configuration file. A configuration file can
be used to produce a consistent style of
printed output.
Selected pages of a document can be
printed without needing to reprint the entire
document. When one or several pages are
poorly printed or damaged and need to be
replaced, 2Faced can print only the needed
pages with the Selected Pages option.
A temporary file is used in the current
directory when the duplex or Selected Pages
option is used. The name of this file is
2FACED.TMP. The size of this file is
proportional to the size of the file being
printed and can become quite large. The
temporary file is deleted when the file is
finished being printed.
2Faced 1
2Faced is a very versatile tool with many
capabilities. With a little experimenting,
it can be quickly mastered and used without
ever using this manual.
Control Screen The options for 2Faced are selected on the
control screen.
╔═══════════════════════════════════════════════════════════╗
║ 2Faced V3.0 ║
║ Copyright (C) 1990 Petersen Programming & Consulting ║
║ 27 Nov 1990 ║
╠═══════════════════════════════════════════════════════════╣
║ Print File ______________________________________ ║
║ ║
║ Printer Type LaserJet II Cols 80 ║
║ Paper Size Letter Rows 60 ║
║ Orientation Landscape Line Numbers Yes ║
║ Print Mode Duplex 2 Up File Info All ║
║ Binding Long Edge Boxes Yes ║
║ Source Side 1 Paper Tray Gray Bar Yes ║
║ Side 2 Manual Feed Expand Tabs 8 ║
║ Print Device PRN Line Wrap Not Marked ║
║ Number Copies 1 CCTL No ║
╟───────────────────────────────────────────────────────────╢
║ - Counts - ║
║ Logical 0 Printed 0 Sheets 0 Page # 0 ║
╟───────────────────────────────────────────────────────────╢
║ ESC Exit F2 Save F4 Selected Pages F8 Start ║
║ Press Space Bar To Change Options ║
╚═══════════════════════════════════════════════════════════╝
These options control how the file is
printed. Once a valid file name has been
entered, other options may be selected. The
current option being selected is highlighted.
For most of the options on the Control
Screen, pushing the space bar rolls through
the available values for the option.
Movement from one option to another is
accomplished by using the arrow, Enter, Tab
and Shift-Tab keys.
After the file is printed, a new file name
can be given along with the selection of new
options.
2 2Faced
Print File This is where the name of the file to be
printed is given. If the desired file to be
printed is not in the current directory, a
full or partial directory pathname to the
file may be included. The standard DOS
notations for directories can be used. If
the file can not be found, the program beeps
and waits for a new file name.
If the file name is given on the command
line, it is placed in this field (see Command
Line options). After a file is printed, the
name of a new file to be printed can be given
and other options can be selected.
Printer Type The type of printer used to print the file
is selected here. The space bar rolls
through these values:
DeskJet
LaserJet
LaserJet+
LaserJet II
LaserJet IID
LaserJet IIP
LaserJet III
LaserJet IIID
The DeskJet does not support the landscape
orientation without the addition of font
cartridges.
The LaserJet does not support graphics.
As a result, the gray bar and boxes options
do not work. Also, the LaserJet doesn't have
the lineprinter font as an internal font. A
font cartridge with the lineprinter font is
needed to print except when using the 1up,
portrait options.
Paper Size Three paper sizes are available.
Letter
Legal
A4
2Faced 3
Legal works well for printing 132 column
reports in the landscape orientation using a
2up or pamphlet print mode.
Orientation Two orientations are available for
printing a file.
Portrait
Landscape
The orientation controls the direction the
file is printed on the paper.
┌────────┐
│ │
│ │ ┌───────────────┐
│ │ │ │
│ │ │ │
│ │ │ │
└────────┘ └───────────────┘
Portrait Landscape
Print Mode The print modes control the manner in
which the text file is printed. Five
different types of print modes are available.
Simplex 1up
Simplex 2up
Duplex 1up
Duplex 2up
Pamphlet
1up and 2up refer to the number of logical
pages that can be printed on one side of a
sheet of paper. Simplex uses only one side
of the paper to print. Duplex prints on both
sides of the paper.
Simplex 1up The file is printed on one side of the
paper. One logical page is printed on each
sheet of paper. Simplex 1up is very much
4 2Faced
like printing the file without using 2Faced.
The amount of paper used in the printing the
document is not reduced by using this option.
Simplex 2up The file is printed on one side of the
paper. Two logical pages are printed on each
sheet of paper. This option reduces the
amount of paper used to print the document by
half.
Duplex 1up The file is printed on both sides of the
paper. One logical page is printed on each
sheet of paper. This option reduces the
amount of paper used to print the document by
half.
Duplex 2up This option is frequently used. Two
logical pages are printed on both sides of
the paper. One fourth the paper is used to
print the document. The paper can be punched
with holes and placed in a ring binder for
compact and easy storage.
Pamphlet The pamphlet option is a special option
that enables the printed document to become a
miniature book. The pages are printed in an
order such that the printed output can be
folded and stapled in the middle.
Binding The binding option is only valid when a
duplex print mode has been chosen. The
binding option has two values.
Short Edge
Long Edge
The binding refers to how the paper will
be fastened when put in a folder. This
option controls how the paper is turned over
for printing the second side of the paper.
Source Side 1 Specifies which paper tray is used to
supply the paper for the first side of the
document. The available values depend on
2Faced 5
which printer type is selected. The complete
list of possible values are:
Manual Feed
Paper Tray
Upper Tray
Lower Tray
The upper and lower tray values are only
available on the LaserJet IID and LaserJet
IIID.
Source Side 2 Specifies where the paper is to come from
for printing the second side of the document.
This option is only available when a duplex
or pamphlet print mode is chosen. The
available values are the same as for side 1.
Print Device Specifies which logical device is
connected to the printer. The available
choices are:
PRN
LPT1
LPT2
COM1
COM2
File
The formatted output can be routed to a
file rather than going directly to a printer
port. The default output file name is taken
from the file being printed with .2FC
appended to it. This file name can be
changed to anything. When the back side of
the paper will be printed (duplex or pamphlet
mode) but a duplexing printer is not
selected, then a second file, containing side
2, is used. The last letter in the file name
chosen is increased by a value of one. To
print these files, use the COPY command with
the binary file option:
copy /b file.2fc lpt1:
6 2Faced
Number Copies More than one copy of the file can be
printed if desired. A value between 1 and 99
can be entered for the number of needed
copies.
Columns The number of columns available across a
logical page are dependent upon the paper
size, orientation and print mode. Usually
there are either 80 or 132 columns. Legal
size paper in 1up landscape can get 230
characters across the page. Check the
Logical Page Sizes section for a complete
list of available columns and rows.
Rows Like columns, the number of rows available
down a logical page are dependent upon the
paper size, orientation and print mode.
Usually there are 60, 66, 80 or 88 rows.
Legal size paper in 1up portrait can get 120
rows. Check Logical Page Sizes section for a
complete list of available columns and rows.
Line Numbers Line numbers of each line in the file will be
printed if you wish.
File Information Information about the file can be printed
if desired. This information includes the
filename, file creation date and time, print
date and time, and the page number. This
information is printed in the top or bottom
margin of the physical page. Another option
is to print just the page number.
Boxes Boxes can be printed around the logical
pages. When the file information is printed,
a box works well to separate the printed text
from the file information.
Gray Bar A classical computer printout look is
obtained by using the gray bar options. The
gray scale ability of the laser printer is
used to create ten gray bars on each logical
page. Typically, 3 lines are printed in each
gray bar for a 60 row page and 4 lines for an
80 row page. When a value for the number of
2Faced 7
rows is chosen which causes the edge of a
gray bar to cut through a line, the gray bar
option is automatically turned off. However,
it can be turned back on if this side affect
is okay.
Expand Tabs Tabs embedded in the text file are
expanded. If tab expansion is not desired,
set this value to 0. Valid values are
between 0 and 99. The default value is 8
spaces. Tabs are expanded to the column of
the next multiple of the given value plus 1.
With a value of 8, tabs are expanded to
columns 9, 17, 25, 33, 41, etc.
Line Wrap Line wrap indicates what is to happen with
lines which are longer than the selected
number of columns. The values available for
line wrap are:
Off
Not Marked
Marked
Off Long lines are truncated. Characters that
would overflow onto the next line are
dropped.
Marked Long lines are wrapped onto the next line
and marked by --> at the beginning of the
line. This highlights what lines are too big
to fit on one line.
Not Marked Long lines are wrapped onto the next line.
Characters at the end of the line are not
lost.
CCTL Carriage Control characters in the first
column of a formatted report are used if this
option is turned on. Otherwise, they are
printed along with the rest of the file.
1 Page Eject
0 Double Space
- Triple Space
8 2Faced
Counts As the file is printed, the page counters
show the current number of pages for each
type shown. A logical page is a page as it
normally would be printed. The logical page
count shows how many logical pages were
found. The printed page count shows how many
sides of a sheet of paper is printed. The
sheets count shows how many physical sheets
of paper are used to print the file. The
page number count shows the current page
number in the file.
Function Keys While selecting options, the ESC key will
abort the program without the file being
printed. The F2 key will save the current
selected options in a configuration file
named 2FACED.CFG in the current directory.
The F4 key invokes the Selected Pages option.
The F8 starts the printing of the file with
the current options.
Configuration The configuration file saves all the
File selected values for the options available in
2Faced. This allows 2Faced to be customized
and to start with user selected defaults each
time it is run. The file name used to save
the defaults is 2FACED.CFG. If there is a
file by this name in the current directory,
2Faced will overwrite it when the F2 key is
used to save the current configuration.
2Faced looks for this file in two
directories during its initialization. It
first looks in the current directory. If the
file is not found there, it then looks in the
directory where 2FACED.EXE is invoked from
(the home directory). This allows different
configuration files to be kept in different
directories. If the files in one directory
should be printed in a particular manner, a
configuration file can be created to save the
needed options. A default configuration can
be kept in the same directory as the 2Faced
program.
The 2FACED.CFG file can also be renamed to
any other file name and still used as a
configuration file. The section on Command
Line Options describes an option available
when invoking 2Faced which uses any file as a
2Faced 9
configuration file. The desired default
options can be kept anywhere on disk, as long
as 2Faced is told where to find them.
Selected Pages When one or more pages from a document
need to be reprinted the selected pages
option can be used. It is invoked by the F4
key on the control screen. A range of page
numbers can be given to be printed.
The first and last page number of the
range are asked for by 2Faced.
╟───────────────────────────────────────────────────────────╢
║ Print Selected Pages 1 thru 1 ║
║ ║
╚═══════════════════════════════════════════════════════════╝
The first page number in the range
defaults to the value of 1. Any page number
between 1 and 999 can be given. If a page
number greater than the last page in the file
is given, nothing is printed.
The last page number in the range defaults
to the same as the first page number. Any
number greater or equal to the first page
number can be given as the last page number.
If only one page is desired, just press
Enter.
2Faced searches for the given range of
page numbers in the text file and prints
them. If another range of pages are needed,
2Faced comes back and asks for them. This
loop of asking for a range of pages and
printing continues until ESC is pressed.
The options used to control the printing
of these selected pages must be selected
before pressing F4 to invoke the selected
pages option.
Command Line Several options can be given to 2Faced
Options when it is run from the command line.
10 2Faced
2faced [filename] [/P] [/D defaults]
The P and D options can be given in either
lower or upper case. Either / or - can be
used to mark these options.
filename When the filename of the text file to be
printed is given on the command line, it is
automatically placed on the control screen.
It is still possible to change the name of
the file on the control screen.
Print Through The P option instructs 2Faced to skip
input on the control screen, directly print
through this file and then quit. Any
configuration file found by 2Faced is used to
initialize the control screen options. This
method of using 2Faced works great when only
one file is to be printed and the desired
options have been saved in a configuration
file.
When the D option is given on the command
Default line, a name of a configuration file is
Configuration expected to follow it. This file name can
File include a full disk and directory path. A
configuration file of any name, not
necessarily 2FACED.CFG, can be kept anywhere
on the disk and used by 2Faced.
If the name of a configuration file is
given on the command line, then it is used.
2Faced will not look for one in the current
directory or in 2Faced's home directory.
Logical Page Quite a few logical page sizes are
Sizes available depending on the selected type of
paper (letter, legal, or A4), printing
orientation (portrait or landscape), and
number of logical pages (1up or 2up). This
table shows the values available for the rows
and columns depending on these options.
2Faced 11
╔════════╤═══════════════════════════════════════════════════╗
║ │ Portrait Landscape ║
║ ├────────────┬────────────┬────────────┬────────────╢
║ │ 1up │ 2up │ 1up │ 2up ║
║ ├────────────┼────────────┼────────────┼────────────╢
║ │ rows cols │ rows cols │ rows cols │ rows cols ║
╟────────┼────────────┼────────────┼────────────┼────────────╢
║ │ 60 80 │ 60 132 │ 60 132 │ 60 80 ║
║ Letter │ 66 132 │ 66 │ 66 180 │ 66 ║
║ │ 80 │ │ 80 │ 80 ║
║ │ 88 │ │ 88 │ 88 ║
╟────────┼────────────┼────────────┼────────────┼────────────╢
║ │ 80 80 │ 60 132 │ 60 140 │ 60 132 ║
║ Legal │ 84 132 │ 66 │ 66 230 │ 66 ║
║ │ 112 │ 80 │ 80 │ 80 ║
║ │ 120 │ 88 │ 88 │ 88 ║
╟────────┼────────────┼────────────┼────────────┼────────────╢
║ │ 60 80 │ 60 132 │ 60 132 │ 60 80 ║
║ A4 │ 66 132 │ 66 │ 66 180 │ 66 ║
║ │ 80 │ │ 80 │ 80 ║
║ │ 88 │ │ 88 │ 88 ║
╚════════╧════════════╧════════════╧════════════╧════════════╝
12 2Faced
Index
--> 8
/D 11
/P 11
1up 3, 4, 7, 11
2FACED.CFG 9, 11
2FACED.EXE 9
2FACED.TMP 1
2up 1, 4, 11
A4 3, 11
Abort 9
Arrow 2
Binding 5
Boxes 3, 7
Cartridge 3
CCTL 8
Columns 7, 11
COM 6
Command line 3, 9-11
Configuration file 1, 9, 11
default 11
Control Screen 2, 10, 11
Count
logical page 9
page number 9
printed page 9
sheet 9
Counts 9
Customize 9
Date
creation 7
print 7
Defaults 9, 11
DeskJet 1, 3
Device
logical 6
Print 6
Directory
current 1, 3, 9, 11
home 9, 11
path 3, 11
Duplex 1, 4-6
1up 4
2up 4
Duplex 1up 5
Duplex 2up 5
Edge
Long 5
Short 5
Enter 2, 10
2Faced 13
ESC 9, 10
F2 9
F4 9, 10
F8 9
File Information 1, 7
File Output 6
Filename 7, 11
Folder 5
Function Keys 9
Graphics 3
Gray bar 1, 3, 7
Gray scale 7
Initialization 9
Landscape 3, 4, 11
LaserJet 1, 3
LaserJet II 1, 3
LaserJet IID 1, 3, 6
LaserJet III 3
LaserJet IIID 1, 3, 6
LaserJet IIP 3
LaserJet+ 1, 3
Legal 3, 7, 11
Letter 3, 11
Line Numbers 7
Line Wrap 8
Lineprinter 3
Logical page 4, 5, 7, 9, 11
Logical Page Sizes 7, 11
Lower Tray 6
LPT 6
Manual Feed 6
Marked 8
Number Copies 7
Orientation 4, 7, 11
Overflow 8
Page number 7, 9, 10
Pamphlet 1, 4-6
Paper Size 3, 7
Paper tray 5, 6
Paper type 11
PCL 1
Physical page 7
Portrait 3, 4, 7, 11
Print File 3
Print Mode 4, 7
Print Through 11
Printed page 9
Printer Command Language 1
Printer Type 3
PRN 6
Reprinted 10
Ring binder 5
14 2Faced
Rows 7, 11
Selected pages 1, 9, 10
Sheet 4, 5, 9
Shift-Tab 2
Side 5, 6
first 5
second 5, 6
Simplex 4
1up 4
2up 4, 5
Source
side 1 5
side 2 6
Space bar 2
Staple 5
Tab 2
Tabs
Expand 8
Temporary file 1
Time
creation 7
print 7
Truncate 8
Upper Tray 6
Wrap 8
2Faced 15